package managers
{
	import com.interaction.shortcuts.ShortcutsManager;
	
	import flash.display.Stage;
	
	public class ShortCutManager extends ShortcutsManager
	{
		private static var _instance:ShortCutManager;
		
		public static function get():ShortCutManager
		{
			return _instance;
		}
		
		public static function instance(stage:Stage, autoDisabledWhenFocusInTextField:Boolean=true):ShortCutManager
		{
			_instance = new ShortCutManager(stage,autoDisabledWhenFocusInTextField);
			return _instance;
		}
		
		public function ShortCutManager(stage:Stage, autoDisabledWhenFocusInTextField:Boolean=true)
		{
			super(stage, autoDisabledWhenFocusInTextField);
			if(_instance)
				throw new Error();
		}
	}
}